<div id="dialogsearpanel">
	<form name="fmsea">
		<input type="text" name="name" value="{{ $nameval }}" class="text" />&nbsp;
		<button type="button" class="btn_filter" id="idbtn_filter">絞込</button>
	</form>
</div>
<div id="diologlist">
	<div class="serach_pageing">
		<p align="left">{{$pageing}}</p>
	</div>
	<div class="serach_result">
		{{ if $idflg == '1' }} {{ foreach from=$data key=k item=v
		name="member" }} &nbsp;<a
			href="javascript:setSS('{{ $v.cd }}','{{ $v.name }}')">{{ $v.name
			}}</a><br> {{ /foreach }} {{ else }} {{ foreach from=$data key=k
		item=v name="member" }} &nbsp;<a
			href="javascript:setS('{{ $v.name }}')">{{ $v.name }}</a><br> {{
		/foreach }} {{ /if }}
	</div>
</div>
<script type="text/javascript">
	$('.btn_filter').click(
			function() {
				var urlPara = makeSearchURL('{{ $paraname }}',
						document.fmsea.name.value);
				$("#dialog").load(urlPara).dialog({
					modal : true
				});
				//$('#dialog').dialog('open');
			});
	function toPageS(thepage) {
		var urlPara = makeSearchURL('{{ $paraname }}',
				document.fmsea.name.value);
		urlPara = urlPara + "&page=" + thepage;
		$("#dialog").load(urlPara).dialog({
			modal : true
		});
	}
	$('input').keypress(
			function(ev) {
				if ((ev.which && ev.which === 13)
						|| (ev.keyCode && ev.keyCode === 13)) {
					$("#idbtn_filter").trigger("click")
					return false;
				} else {
					return true;
				}
			});
	document.fmsea.name.focus();
</script>
